package com.reform.mapper;

import com.reform.pojo.phase.PhaseFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mortale
 * @since 2021-09-21
 */
@Mapper
public interface PhaseFileMapper extends BaseMapper<PhaseFile> {

    /**
     * 根据阶段文件检查编号修改阶段文件检查状态
     * @param pfId 阶段文件检查编号
     * @param status 状态
     * @return int
     */
    @Update("update phase_file set status = ${status} where pf_id = #{pfId}")
    int updateStatusByPfId(@Param("pfId") String pfId,@Param("status") Integer status);
}
